<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" th:href="@{/assets/layui/css/layui.css}" media="all">
    <link rel="stylesheet" type="text/css" th:href="@{/assets/css/common.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/assets/viewer/viewer.css}">
    <style type="text/css">
        .img-panel {
            width: 180px; height: 180px; padding: 10px; margin: 15px; position: relative;
        }
        .img-item {
            width: 100%; height: 100%;
        }
        .img-panel .img-operate {
            position: absolute;
            bottom: 10px;
            height: 30px;
            width: 180px;
            background: rgba(0, 0, 0, 0.5);
            text-align:center;
        }
    </style>
</head>
<!-- 引入js -->
<script type="text/javascript" th:src="@{/assets/jquery/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/assets/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/assets/viewer/viewer.js}"></script>
<body>
<div class="layui-layout">
    <div class="layui-header">
        <ul class="layui-nav">
            <li class="layui-nav-item">
                <a href="javascript:;">主页</a>
            </li>
            <li class="layui-nav-item layui-layout-right">
                <a href="javascript:;"><img th:src="@{/assets/img/tpg.jpg}" class="layui-nav-img">操作</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" id="upload">上传图片</a></dd>
                    <dd><a href="javascript:;" id="logout">退 出</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-body" style="left: 0px;">
        <div class="layui-bg-gray" style="padding: 15px;">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-panel" id="img-panel-list-parent">
                        <ul id="img-panel-list">
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-footer layui-text">
        copyright © 2021 zy-is all rights reserved.
    </div>
</div>

<!-- 上传图片弹层 -->
<div style="display: none;" id="uploadDiv">
    <div class="layui-upload" style="padding: 10px;">
        <button type="button" class="layui-btn layui-btn-normal" id="uploadListBut">选择图片</button>
        <button type="button" class="layui-btn" id="uploadAction">开始上传</button>
        <div class="layui-upload-list">
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>文件名</th>
                        <th>大小</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="fileList"></tbody>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{/assets/js/index.js}"></script>
</body>
</html>